home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGASIC
/
BASFILES.LZH
/
QBTXSECR.BAS
< prev
next >
Wrap
BASIC Source File
|
1988-09-10
|
899b
|
40 lines
'$INCLUDE:'QBTOOLS.INC'
'' '$INCLUDE: 'qbtools2.inc'
'' '$INCLUDE: 'qbt2indx.inc'
'' '-------------------------Standard Include Merge Section-------------------
DEFSNG A-Z
SUB IndexSecure (IxNum%, Xnm$(), Xk$(), Xh%(), Sc%) STATIC
' Secure the header information by opening, writing and
' closing the associated header file.
' Errors:
'
' Sc% = -1 if there are no available file handles
' ELSE
' Sc% = 0
Sc% = 0
w% = FREEFILE
IF w% = 0 THEN
Sc% = -1 ' No available file handles
EXIT SUB
END IF
OPEN "R", w%, Xnm$(IxNum%) + ".hdr", 512
FIELD #w%, 32 AS desc$, 32 AS xmast$, 2 AS klen$, 2 AS nok$, 2 AS nexav$
FIELD #w%, 70 AS twit$, 2 AS kdel$, 440 AS spare$
GET #w%, 1
LSET nok$ = MKI$(Xh%(IxNum%, 2))
LSET nexav$ = MKI$(Xh%(IxNum%, 3))
LSET kdel$ = MKI$(Xh%(IxNum%, 4))
PUT #w%, 1
CLOSE w%
END SUB